﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<ComputerShopE3.Models.DESKTOP>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Chỉnh sửa</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Các trường</legend>
            <p>
            CPU:
            </p>
            <p>
                <%=Html.DropDownList("idCpu", (SelectList)ViewData["CPU"])%>
            </p>
            <p>
                RAM:
            </p>
            <p>
                <%=Html.DropDownList("idRam", (SelectList)ViewData["RAM"])%>
            </p>
            <p>
                VGA:
            </p>
            <p>
                <%=Html.DropDownList("idVga", (SelectList)ViewData["VGA"])%>
            </p>
            <p>
                HDD:
            </p>
            <p>
                <%=Html.DropDownList("idHdd", (SelectList)ViewData["HDD"])%>
            </p>
            <p>
                MainBoard:
            </p>
            <p>
                <%=Html.DropDownList("idMainBoard", (SelectList)ViewData["MAINBOARD"])%>
            </p>
            <p>
                HDH:
            </p>
            <p>
                <%=Html.DropDownList("idHdh", (SelectList)ViewData["HDH"])%>
            </p>
            <p>
                SoundCard:
            </p>
            <p>
                <%=Html.DropDownList("idSoundCard", (SelectList)ViewData["SOUND_CARD"])%>
            </p>
            <p>
                CD_DVD:
            </p>
            <p>
                <%=Html.DropDownList("idCdDvd", (SelectList)ViewData["CD_DVD"])%>
            </p>
            <p>
                Monitor:
            </p>
            <p>
                <%=Html.DropDownList("idMonitor", (SelectList)ViewData["MONITOR"])%>
            </p>
            <p>
                Speaker:
            </p>
            <p>
                <%=Html.DropDownList("idSpeaker", (SelectList)ViewData["SPEAKER"])%>
            </p>
            <p>
                Case:
            </p>
            <p>
                <%=Html.DropDownList("idCase", (SelectList)ViewData["CASE"])%>
            </p>
            <p>
                Power:
            </p>
            <p>
                <%=Html.DropDownList("idPower", (SelectList)ViewData["POWER"])%>
            </p>
            <p>
                KeyBoard:
            </p>
            <p>
                <%=Html.DropDownList("idKeyboard", (SelectList)ViewData["KEYBOARD"])%>
            </p>
            <p>
                Mouse:
            </p>
            <p>
                <%=Html.DropDownList("idMouse", (SelectList)ViewData["MOUSE"])%>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Trở lại danh mục", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
     <title>Desktop</title>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

